/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.creational.prototype_pattern.Impl;

import com.kleintjes.creational.prototype_pattern.Prototype;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class Person implements Prototype{
    
    String name;
    
    public Person(String name) {
        this.name = name;
    }
    
    @Override
    public Prototype doClone() {
        return new Person(name);
    }
    
    @Override
    public String toString() {
        return "This person is named: "+ name;
    }
    
}
